Register login authenticate(rla)
http://www.aspdotnet-suresh.com/2013/11/sql-server-add-auto-increment-column-or.html

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;


using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using System.Web.Security;
using System.IO;

SNO------------------------------int
UN-------------------------------VARCHAR
PASSWORD-------------------VARCHAR
EMAIL--------------------------VARCHAR

<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ForeColor="Red" 
    ErrorMessage="Invalid email address."    ControlToValidate="EMAIL" 
    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
    Display="Dynamic">
</asp:RegularExpressionValidator>

<p>user name<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox></p>
<asp:RequiredFieldValidator ForeColor="Red" runat="server" ControlToValidate="TextBox1" 
ErrorMessage="Choose one of the options"></asp:RequiredFieldValidator>

Adding multiple parameters all at once to a SqlCommand using AddRange

So rarely does a Stored Procedure take just one argument and well typing the same thing over and over and over can be a pain so what to do? use AddRange and create a array of sql command using simple syntax and copy pasta
using (SqlCommand cmd = new SqlCommand() { CommandType = CommandType.StoredProcedure, Connection = connString, CommandText = "Exec Card_Add_Company" })
{
cmd.Parameters.AddRange(new SqlParameter[]
{
new SqlParameter("@Example",NewExampleInfo.Rows[0]["CompanyName"].ToString()),
new SqlParameter("@Example_Contact",NewExampleInfo.Rows[0]["Name"].ToString()),
new SqlParameter("",[ControlNameHere]),
new SqlParameter("",[ControlNameHere])
})

Using this then filling in the blanks can save you quite a bit of time and you get those 13-20 something variables out of the way in no time for me 
it was only nine so i made 9 SqlParameters in the add range statement and bam love is in the air. Make a custom snippet for this to use with intelisense 
and you are golden.


